/* 自定义 mdBook 样式：优化中文排版与层级标题 */
:root {
  --sidebar-width: 280px;
}

.book .content { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.7; }
.book .content h1, .book .content h2, .book .content h3 { font-weight: 700; }
.book .content h1 { border-bottom: 1px solid #eee; padding-bottom: .5rem; margin-bottom: 1rem; }
.book .content code { background: #f6f8fa; padding: .2rem .35rem; border-radius: 4px; }
.book .menu { width: var(--sidebar-width); }
@media (max-width: 768px) {
  :root { --sidebar-width: 240px; }
}